<div ng-controller="HeadController">
    <nav class="navbar navbar-default" role="navigation">
        <div class="container-fluid">

            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">{{title}}</a>
            </div>

            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                </ul>
                <form class="navbar-form navbar-left" role="search">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="Search">
                    </div>
                    <button type="submit" class="btn btn-default">Submit</button>
                </form>
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="#">Link</a></li>
                    <li class="dropdown" ng-init="loginMenuToggle = false">
                        <a href="#" class="dropdown-toggle" ng-click="loginMenuToggle = loginMenuToggle === false ? true: false;">Login <b class="caret"></b></a>
                        <ul class="dropdown-menu" ng-show="loginMenuToggle">
                            <li><a href="#">Sign In</a></li>
                            <li><a href="/registration/">Sign Up</a></li>
                            <li class="divider"></li>
                            <li><a href="/">To main</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
</div>